< previous page page_667 next page >

Page 667
EXERCISE
Add Icons to an ImageList Control
1. Select Project, Components from the Visual Basic menu.
2. Select the Microsoft Windows Common Controls 6.0 option from the list of components.
3. Add an ImageList control to your project.
4. Set the Name property to imlList.
5. Click the Custom property to bring up the property pages for the ImageList control.
6. Add the Folder05.ico file to the ImageList control.
7. Set the Key property for this image to Folder.
8. Add the Drop1pg.ico file to the ImageList control.
9. Set the Key property for this image to DropPage.
analysis.gifNow that you have the ImageList control loaded, lets convert the image controls into a control array.

EXERCISE
Create a Control Array of Image Controls
1. Click the imaArrow image control.
2. Change the Name property of the imaArrow image control to imaPicture.
3. Click the imaPhone image control.
4. Change the Name property of the imaPhone image control to imaPicture.
5. When asked whether you want to create a control array, click the Yes button.
6. Click the imaDisk image control.
7. Change the Name property of the imaDisk image control to imaPicture.
8. Click the imaFlag image control.
9. Change the Name property of the imaFlag image control to imaPicture.
10. Delete any of the old code for the old image control names.

 
< previous page page_667 next page >

If you like this book, buy it!